package comparetor;

import java.util.Comparator;

import pojo.Customer;

public class CustomerComparetorById implements Comparator<Customer> {

	public int compare(Customer o1, Customer o2) 
	{
		int a=Integer.parseInt(o1.getId());
		int b=Integer.parseInt(o2.getId());
		if(a<b)
			return -1;
		else if(a>b)
			return 1;
		else
			return 0;
	}

}
